def shengxiao(year):
    zodiac = ["鼠", "牛", "虎", "兔", "龙", "蛇", "马", "羊", "猴", "鸡", "狗", "猪"]
    if year>=2004:
       index = (year-2004)%12
       return zodiac[-4+index]
    else:
        index = (2004-year)%12
        return zodiac[-4-index]

year = int(input("请输入年份："))
print(shengxiao(year))